package com.etc.dao;

import com.etc.entity.FxPlaylist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PlaylistMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FxPlaylist record);

    int insertSelective(FxPlaylist record);

    FxPlaylist selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FxPlaylist record);

    int updateByPrimaryKey(FxPlaylist record);

    /**自己写的方法
     * 根据关键字和分页查询
     * @param keywords
     * @return list
     */
    List<FxPlaylist> selectByPage(@Param("keywords") String keywords) ;

//    List<FxPlaylist> selectPlaylistByPage(@Param("keywords") String keywords, @Param("genres") String genres, @Param("type") String type);

}